package net.f3322.lingwl13.service;

import net.f3322.lingwl13.domain.Book;
import entity.PageResult;
import net.f3322.lingwl13.domain.Record;
import net.f3322.lingwl13.domain.User;

public interface BookService{
    PageResult selectNewBooks(Integer pageNum,Integer pageSize);
    Book findById(String id);
    Integer borrowBook(Book book);
    PageResult search(Book book,Integer pageNum,Integer pageSize);
    Integer addBook(Book book);
    Integer editBook(Book book);
    PageResult searchBorrowed(Book book, User user,Integer pageNum,Integer pageSize);
    boolean returnBook(String id,User user);
    Integer returenConfirm(String id);
    Record setRecord(Book book);
}
